﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FineSoft.ViewModels
{
	public class Login : ViewModel
	{
		private string _ImageUrl;
		public string ImageUrl
		{
			get
			{
				if (this._ImageUrl == null)
				{
					this._ImageUrl = this.Communication.GetLoginImageUrl();
					this.RaisePropertyChanged("ImageUrl");
				}
				return this._ImageUrl;
			}
		}

		//private System.Windows.Media.Imaging.BitmapImage _ImageSource;
		//public System.Windows.Media.Imaging.BitmapImage ImageSource
		//{
		//    get
		//    {
		//        if (this._ImageSource == null)
		//        {
		//            this._ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri(this.ImageUrl));
		//            this.RaisePropertyChanged("ImageSource");
		//        }
		//        return this._ImageSource;
		//    }
		//}
	}
}